Optimal. Leaf size=238 \[ \frac{1}{512} \sqrt{3 \left (48835+32827 \sqrt{3}\right )} \log \left (x^2-\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )-\frac{1}{512} \sqrt{3 \left (48835+32827 \sqrt{3}\right )} \log \left (x^2+\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )+\frac{x \left (238-59 x^2\right )}{64 \left (x^4+2 x^2+3\right )}-\frac{25 x \left (x^2+3\right )}{16 \left (x^4+2 x^2+3\right )^2}-\frac{1}{256} \sqrt{3 \left (32827 \sqrt{3}-48835\right )} \tan ^{-1}\left (\frac{\sqrt{2 \left (\sqrt{3}-1\right )}-2 x}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right )+\frac{1}{256} \sqrt{3 \left (32827 \sqrt{3}-48835\right )} \tan ^{-1}\left (\frac{2 x+\sqrt{2 \left (\sqrt{3}-1\right )}}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.725481, antiderivative size = 238, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 7, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.226 \[ \frac{1}{512} \sqrt{3 \left (48835+32827 \sqrt{3}\right )} \log \left (x^2-\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )-\frac{1}{512} \sqrt{3 \left (48835+32827 \sqrt{3}\right )} \log \left (x^2+\sqrt{2 \left (\sqrt{3}-1\right )} x+\sqrt{3}\right )+\frac{x \left (238-59 x^2\right )}{64 \left (x^4+2 x^2+3\right )}-\frac{25 x \left (x^2+3\right )}{16 \left (x^4+2 x^2+3\right )^2}-\frac{1}{256} \sqrt{3 \left (32827 \sqrt{3}-48835\right )} \tan ^{-1}\left (\frac{\sqrt{2 \left (\sqrt{3}-1\right )}-2 x}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right )+\frac{1}{256} \sqrt{3 \left (32827 \sqrt{3}-48835\right )} \tan ^{-1}\left (\frac{2 x+\sqrt{2 \left (\sqrt{3}-1\right )}}{\sqrt{2 \left (1+\sqrt{3}\right )}}\right ) \]
Antiderivative was successfully verified.
[In] Int[(x^4*(4 + x^2 + 3*x^4 + 5*x^6))/(3 + 2*x^2 + x^4)^3,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 38.5947, size = 350, normalized size = 1.47 \[ \frac{x \left (- 1087488 x^{2} + 4386816\right )}{1179648 \left (x^{4} + 2 x^{2} + 3\right )} - \frac{x \left (4800 x^{2} + 14400\right )}{3072 \left (x^{4} + 2 x^{2} + 3\right )^{2}} + \frac{\sqrt{6} \left (1271808 + 2405376 \sqrt{3}\right ) \log{\left (x^{2} - \sqrt{2} x \sqrt{-1 + \sqrt{3}} + \sqrt{3} \right )}}{14155776 \sqrt{-1 + \sqrt{3}}} - \frac{\sqrt{6} \left (1271808 + 2405376 \sqrt{3}\right ) \log{\left (x^{2} + \sqrt{2} x \sqrt{-1 + \sqrt{3}} + \sqrt{3} \right )}}{14155776 \sqrt{-1 + \sqrt{3}}} - \frac{\sqrt{3} \left (- \frac{\sqrt{2} \sqrt{-1 + \sqrt{3}} \left (2543616 + 4810752 \sqrt{3}\right )}{2} + 2543616 \sqrt{2} \sqrt{-1 + \sqrt{3}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \left (x - \frac{\sqrt{-2 + 2 \sqrt{3}}}{2}\right )}{\sqrt{1 + \sqrt{3}}} \right )}}{7077888 \sqrt{-1 + \sqrt{3}} \sqrt{1 + \sqrt{3}}} - \frac{\sqrt{3} \left (- \frac{\sqrt{2} \sqrt{-1 + \sqrt{3}} \left (2543616 + 4810752 \sqrt{3}\right )}{2} + 2543616 \sqrt{2} \sqrt{-1 + \sqrt{3}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \left (x + \frac{\sqrt{-2 + 2 \sqrt{3}}}{2}\right )}{\sqrt{1 + \sqrt{3}}} \right )}}{7077888 \sqrt{-1 + \sqrt{3}} \sqrt{1 + \sqrt{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**4*(5*x**6+3*x**4+x**2+4)/(x**4+2*x**2+3)**3,x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.664537, size = 129, normalized size = 0.54 \[ \frac{1}{256} \left (\frac{4 x \left (-59 x^6+120 x^4+199 x^2+414\right )}{\left (x^4+2 x^2+3\right )^2}+\frac{3 \left (174+133 i \sqrt{2}\right ) \tan ^{-1}\left (\frac{x}{\sqrt{1-i \sqrt{2}}}\right )}{\sqrt{1-i \sqrt{2}}}+\frac{3 \left (174-133 i \sqrt{2}\right ) \tan ^{-1}\left (\frac{x}{\sqrt{1+i \sqrt{2}}}\right )}{\sqrt{1+i \sqrt{2}}}\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(x^4*(4 + x^2 + 3*x^4 + 5*x^6))/(3 + 2*x^2 + x^4)^3,x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.039, size = 418, normalized size = 1.8 \[{\frac{1}{ \left ({x}^{4}+2\,{x}^{2}+3 \right ) ^{2}} \left ( -{\frac{59\,{x}^{7}}{64}}+{\frac{15\,{x}^{5}}{8}}+{\frac{199\,{x}^{3}}{64}}+{\frac{207\,x}{32}} \right ) }-{\frac{307\,\ln \left ({x}^{2}+\sqrt{3}+x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}\sqrt{3}}{1024}}-{\frac{399\,\ln \left ({x}^{2}+\sqrt{3}+x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}}{1024}}+{\frac{ \left ( -614+614\,\sqrt{3} \right ) \sqrt{3}}{512\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{-798+798\,\sqrt{3}}{512\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }-{\frac{23\,\sqrt{3}}{32\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x+\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{307\,\ln \left ({x}^{2}+\sqrt{3}-x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}\sqrt{3}}{1024}}+{\frac{399\,\ln \left ({x}^{2}+\sqrt{3}-x\sqrt{-2+2\,\sqrt{3}} \right ) \sqrt{-2+2\,\sqrt{3}}}{1024}}+{\frac{ \left ( -614+614\,\sqrt{3} \right ) \sqrt{3}}{512\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }+{\frac{-798+798\,\sqrt{3}}{512\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) }-{\frac{23\,\sqrt{3}}{32\,\sqrt{2+2\,\sqrt{3}}}\arctan \left ({\frac{2\,x-\sqrt{-2+2\,\sqrt{3}}}{\sqrt{2+2\,\sqrt{3}}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^4*(5*x^6+3*x^4+x^2+4)/(x^4+2*x^2+3)^3,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ -\frac{59 \, x^{7} - 120 \, x^{5} - 199 \, x^{3} - 414 \, x}{64 \,{\left (x^{8} + 4 \, x^{6} + 10 \, x^{4} + 12 \, x^{2} + 9\right )}} + \frac{3}{64} \, \int \frac{87 \, x^{2} - 46}{x^{4} + 2 \, x^{2} + 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)*x^4/(x^4 + 2*x^2 + 3)^3,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.302172, size = 1165, normalized size = 4.89 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)*x^4/(x^4 + 2*x^2 + 3)^3,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 2.12792, size = 68, normalized size = 0.29 \[ - \frac{59 x^{7} - 120 x^{5} - 199 x^{3} - 414 x}{64 x^{8} + 256 x^{6} + 640 x^{4} + 768 x^{2} + 576} + \operatorname{RootSum}{\left (17179869184 t^{4} - 38405406720 t^{2} + 29095522083, \left ( t \mapsto t \log{\left (\frac{10301210624 t^{3}}{6083466813} - \frac{4322999552 t}{2027822271} + x \right )} \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**4*(5*x**6+3*x**4+x**2+4)/(x**4+2*x**2+3)**3,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (5 \, x^{6} + 3 \, x^{4} + x^{2} + 4\right )} x^{4}}{{\left (x^{4} + 2 \, x^{2} + 3\right )}^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)*x^4/(x^4 + 2*x^2 + 3)^3,x, algorithm="giac")
[Out]